﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FanaticRock.Core.Helpers;

namespace FanaticRock.Core.Models
{
    public class UriResourceSource : ResourceSource
    {
        public Uri Uri { get; private set; }

        public UriResourceSource()
        {
            
        }

        public UriResourceSource(Uri uri)
        {
            Type = ResourceSourceEnum.Uri;
            Uri = uri;
        }

        public UriResourceSource(string uri) : this(UriHelper.GetUri(uri))
        {

        }

        public UriResourceSource(UriResourceSource other) : this(other.Uri)
        {

        }

        public override object Clone()
        {
            return new UriResourceSource(this);
        }
    }
}
